package ru.rchervot.sanasar.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class EventVisibilityFiltersOrders extends GwtEvent<HandlerVisibilityFiltersOrders> {

	public static final GwtEvent.Type<HandlerVisibilityFiltersOrders> TYPE = new GwtEvent.Type<HandlerVisibilityFiltersOrders>();
	
	private final boolean visibility;
	
	public EventVisibilityFiltersOrders(boolean visibility) {
		this.visibility = visibility;
	}
	
	@Override
	protected void dispatch(HandlerVisibilityFiltersOrders handler) {
		handler.onVisibilityChange(this);
		
	}

	@Override
	public GwtEvent.Type<HandlerVisibilityFiltersOrders> getAssociatedType() {
		return TYPE;
	}

	public boolean getVisibility() {
		return visibility;
	}
}
